include ../Makefile.shared

define PROJ_aclearnmn
  SOURCES = optImpl.ml hashes.ml graphclone.ml slearn.ml aclearnmn.ml
  RESULT = aclearnmn
endef
export PROJ_aclearnmn

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = aclearnmn
endif

export LIBS=ext str unix data expat mn bn circuit lbfgs

# Default target to use
all: nc
	cp $(SUBPROJS) $(BINDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
